﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Alos.Common;
using Alos.Entity;
using Alos.IService;

namespace Alos.LanClass.Api
{
    /// <summary>
    /// 学生疑惑笔记表
    /// </summary>
    public class StudentNoteProblemController : ApiController
    {
        IStudentNoteProblemService StudentNoteProblemService;
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="_SysUserInfoService"></param>
        public StudentNoteProblemController(IStudentNoteProblemService _IStudentNoteProblemService)
        {
            StudentNoteProblemService = _IStudentNoteProblemService;
        }
        /// <summary>
        /// 添加学生疑惑笔记
        /// <param name="StudentNoteProblem">学生疑惑笔记</param>
        /// </summary>
        [HttpPost]
        [Route("api/StudentNoteProblem/CreateStudentNoteProblem")]
        public JsonRtn<dynamic> CreateStudentNoteProblem([FromBody]StudentNoteProblem StudentNoteProblem)
        {
            var jsRtn = new JsonRtn<dynamic>();
            jsRtn.message = StudentNoteProblemService.CreateStudentNoteProblem(StudentNoteProblem).ToString() ;
            return jsRtn;               
        }
    }
}
